<template>
    <div>
        <el-button @click="logout">退出</el-button>
    </div>
    
</template>

<script>
 import {removeCurrentUser, removeToken} from '@/utils/auth'
 import {do_logout} from '@/utils/auth'
export default {
    methods: {
        logout() {
    this.$confirm('确定注销并退出系统吗？', '提示').then(() => {
  
        removeToken();
        removeCurrentUser();
        this.$router.push({ path: '/login' });
      

    }).catch(() => {});
  },

    }
}
</script>
